package com.numbfish.ch_10.six_blocking_queue.LinkedBlockingDequeTest1.src.test ;

import java.util.Iterator;
import java.util.concurrent.LinkedBlockingDeque;

public class descendingIterator {

	public static void main(String[] args) {
		LinkedBlockingDeque deque = new LinkedBlockingDeque(3);
		deque.addLast("anyString1");
		deque.addLast("anyString2");
		deque.addLast("anyString3");

		Iterator iterator = deque.descendingIterator();
		while (iterator.hasNext()) {
			System.out.println(iterator.next());
		}

	}

}